/*
 * echo_server.h
 *
 *  Created on: 4 nov. 2013
 *      Author: julien
 */

#ifndef ECHO_SERVER_H_
#define ECHO_SERVER_H_

#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <netinet/in.h>

typedef struct client client;
struct client {
	int socket;
	char pseudo[20];
	client *next;
};

typedef client* listeClients;


listeClients deleteFromList(int Socket, listeClients liste);
listeClients ajouterClient(listeClients liste, int socket, char* Pseudo);
int pseudoExiste(listeClients liste, const char* Pseudo);

#endif /* ECHO_SERVER_H_ */
